package com.zjw.study.basics.java.classinstantiation;

/**
 * -
 *
 * @author zhangjiwei
 * @version V 1.0
 * @project com.zjw.study.basics.java.classinstantiation
 * @date 2020/6/5 11:25
 */
public class InstantiationSonProcess extends InstantiationProcess {

    {
        System.out.println("son代码块");
    }

    static {
        System.out.println("son静态代码块");
    }

    public InstantiationSonProcess() {
        System.out.println("son无参构造");
    }

    public InstantiationSonProcess(String arg) {
        System.out.printf("son有参构造 %s\r\n", arg);
    }

    private String initStr() {
        System.out.println("son-initStr()");
        return "son-initStr";
    }

    private static String initStaticStr() {
        System.out.println("son-initStaticStr()");
        return "son-initStaticStr";
    }

    private static String initStaticBeforeStr() {
        System.out.println("son-initStaticBeforeStr()");
        return "son-initStaticBeforeStr";
    }
}
